// App.jsx
import {
  BrowserRouter ,
  Routes,
  Route
} from "react-router-dom"
import routes from '../src/router'
function App() {
  return <BrowserRouter>
    <Routes>
      {
        routes.map(route => <Route exact key={route.path} path={route.path} element={<route.component/>}>
        </Route>)
      }
    </Routes>
  </BrowserRouter>
}

export default App
